package com.cwnu.utils;

import java.util.Map;

public class TokenUtil {

    public static Integer getUserId() {
        Map<String, Object> mp = ThreadLocalUtil.get();
        Integer id = (Integer) mp.get("id");
        return id;
    }

    public static String getUserName() {
        Map<String, Object> mp = ThreadLocalUtil.get();
        return (String) mp.get("username");
    }
}
